function edit(address,phone,pwd) {
    //使得表格可编辑
    document.getElementById("addressText").innerHTML=
        '<div id="addressText" contenteditable=\"True\">'+address+'</div>';
    document.getElementById("phoneText").innerHTML=
        '<div id="phoneText" contenteditable=\"True\">'+phone+'</div>';
    document.getElementById("pwdText").innerHTML=
        '<div id="pwdText" contenteditable=\"True\">'+pwd+'</div>';
    //按钮的显示与隐藏
    document.getElementById("editBt").style.display="none";
    document.getElementById("editBtYes").style.display="inline-block";
    document.getElementById("editBtNo").style.display="inline-block";
}
function save() {
    var address = document.getElementById("addressText").innerText;
    var phone = document.getElementById("phoneText").innerText;
    var pwd = document.getElementById("pwdText").innerText;
    location.href="/saveInfo?address="+address+"&pwd="+pwd+"&phone="+phone;
}
function cancel(address,phone,pwd) {
    document.getElementById("addressText").innerHTML=
        '<div id="addressText" contenteditable=\"False\">'+address+'</div>';
    document.getElementById("phoneText").innerHTML=
        '<div id="phoneText" contenteditable=\"False\">'+phone+'</div>';
    document.getElementById("pwdText").innerHTML=
        '<div id="pwdText" contenteditable=\"False\">'+pwd+'</div>';
    document.getElementById("editBt").style.display="inline-block";
    document.getElementById("editBtYes").style.display="none";
    document.getElementById("editBtNo").style.display="none";
}

function clearHistory1() {
    location.href="/clearLoginRecord";
}